From: Jia Chao Date: Tue, 13 Apr 2021 02:07:54 +0000 (+0800) Subject: keyboard: Fix suggestions box X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~616^2^2~61 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=f76e6877c7f788b08a1bf371bcc49207eda4882d;p=gnome-shell.git keyboard: Fix suggestions box The suggestions box actor was not being correctly populated. Make it correctly use the St.BoxLayout add_child() method. Fixes: https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/3422 Fixes: https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/2965 Part-of: --- diff --git a/js/ui/keyboard.js b/js/ui/keyboard.js index 866382e4f..10a21cbe0 100644 --- a/js/ui/keyboard.js +++ b/js/ui/keyboard.js @@ -198,7 +198,7 @@ class Suggestions extends St.BoxLayout { add(word, callback) { let button = new St.Button({ label: word }); button.connect('clicked', callback); - this.add(button); + this.add_child(button); } clear() {